package DES;

import org.apache.commons.codec.digest.DigestUtils;

public class RandUtil {

    public static String rand(String text) {
        String s = DigestUtils.md5Hex(text + text.length());
        return s.substring(0,8);
    }
}